import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {TypeArticleComponent} from './type-article.component';
import {TypeArticleDetailComponent} from './type-article-detail/type-article-detail.component';

const routes: Routes = [
  {
    path: '',
    component: TypeArticleComponent
  },
  {
    path: 'detail/:id',
    component: TypeArticleDetailComponent
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class TypeArticleRoutingModule {
}
